package com.app;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest {
    @Test
    public void T1() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Spring.xml");
        TargetInterface target= (TargetInterface ) applicationContext.getBean("target");
        target.method();
    }
}
